﻿/*=================================================================
	TASK 4:                                                {Loop's}
	Write a program that calculates N!/K! for given N and K (1<K<N).   
==================================================================*/

using System;

class CalculateNdivideK
{
    static void Main()
    {
        Console.Write("Enter N=");
        double n = double.Parse(Console.ReadLine());

        Console.Write("Enter K=");
        double k = double.Parse(Console.ReadLine());
       
        double factorial = 1;
        for (int i = (int)(k + 1); i <= n; i++)
        {
            factorial *= i;
        }
        Console.WriteLine("N!/K!={0}",factorial);
    }
}

